/*
 * @Author: codeD
 * @Date: 2022-02-17 20:45:55
 * @LastEditors: codeD
 * @LastEditTime: 2022-02-17 22:05:43
 * @Description: file content
 * @FilePath: \wpt\src\components\Search\type.tsx
 */
import type { CSSProperties, FocusEvent, ChangeEvent } from 'react';

export interface SearchProps{
    placeholder?: string
    className?: string
    value?: string
    style?: CSSProperties
    defaultValue?: string
    onFocus?: ( event: FocusEvent<HTMLInputElement, Element> )=>void
    onChange?: ( event: ChangeEvent<HTMLInputElement> )=>void
    onCancel?: () => void
    onSearch?: ( value: string ) => void
    onClearClick?: ()=> void
}